const BasicModel = require('./BasicModel');
module.exports = class extends BasicModel {
  async updatestuAction(params) {
    const data = this.model(params.model).where({stu_id: params.data.stu_id}).update(params.data);
    return data;
  }
  async getAction(params) {
    const data = await this.model(params.model).where({stu_id: params.id}).find();
    const imgdata = await this.model('user_files').where({user_id: params.id}).select();
    data.imginfo = imgdata;
    return data;
  }
};
